#!/usr/bin/python

from Tkinter import *
import touchmpdcontroller
import string

class UI(Frame): 
	def __init__(self, master=None):
		Frame.__init__(self,master)
		self.pack()
		self.createWidgets()
	def createWidgets(self):
		self.quitButton = Button ( self, text="Quit", command=self.printText )
		self.searchBox = Entry ( self )
		self.searchBox.pack()
		self.quitButton.pack()
		for letter in string.ascii_lowercase:
			setattr(self,letter + "Button", Button( self, text=letter, command=self.printText))
			getattr(self,letter + "Button").pack()
	def printText(self):
		print self.searchBox.get()
